<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
//公共控制器
class CommonController extends Controller{

	public function __init(){
		$this->auth();
	}
	//验证是否登录
	public function auth(){
		if(!isset($_SESSION['uid'])||!isset($_SESSION['username']))

	    go(U('Login/index'));
	}
 

	
	
	
}
	